package com.changgou.entity;

/**
 * @author zero
 * @date 2020/6/26
 */


/**
 * 自定义异常类
 */
public class CustomException extends RuntimeException{

    private Result result;

    /**
     * 构造方法
     * @param code
     * @param message
     */
    public CustomException(Integer code , String message){
        this.result = new Result(false,code,message);
    }

    public Result getResult(){
        return result;
    }

}